#include "usermode.h"
#include "ui_usermode.h"
#include "userinfo.h"

userMode::userMode(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::userMode)
{
    ui->setupUi(this);
    ui->lb_userinfo2->setText(UserInfo::getInstance()->getUserName());
    ui->lb_usersign2->setText(UserInfo::getInstance()->getUid());
}

userMode::~userMode()
{
    delete ui;
}

void userMode::on_btn_user_clicked()
{
    if(userInfoPage==nullptr)
    {
        userInfoPage = new UserInfoPage();
    }
    userInfoPage->show();
}

